home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
TEST
/
FF.ASM
< prev
next >
Wrap
Assembly Source File
|
1996-11-18
|
710b
|
44 lines
include qlib.inc
include dos.inc
include string.inc
include stdio.inc
include conio.inc
.data
fileblk ffblk <>
.code
main proc
callp clrscr
callp findfirst,"*.*",10h,offset fileblk ;DIRS!
.if eax==ERROR
jmp done1
.endif
@@:
.if fileblk.ff_attrib==10h
callp printf,"\\%s\n",offset fileblk.ff_name
.endif
callp findnext,offset fileblk
.if eax==ERROR
jmp done1
.endif
jmp @b
done1:
callp findfirst,"*.*",0h,offset fileblk ;FILES!
.if eax==ERROR
jmp done2
.endif
@@:
callp printf,"%s\n",offset fileblk.ff_name
callp findnext,offset fileblk
.if eax==ERROR
jmp done2
.endif
jmp @b
done2:
ret
main endp
end